i = 123
j = bin(i)

print(bin(i))
print(oct(i))
print(hex(i))
print(float(i))

# print(oct(j))
# oct(j)是0o173，是字符串，没法二进制
# TypeError: 'str' object cannot be interpreted as an integer

